package com.cloud.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cloud.core.BaseService;
import com.cloud.dao.PatientBean;
import com.cloud.dao.impl.PatientDao;

/**
 * 1Cloud1
 * @author Administrator
 * @since 2015-12-4
 * @version 1.0 
 */
@Service("PatientService")
public class PatientService extends BaseService{
	private static final Logger logger = LoggerFactory.getLogger(PatientService.class);
	
	@Autowired
	private PatientDao PatientDao;
	
	public List<PatientBean> getPatientList(PatientBean bean){
		logger.debug(String.format("开始查询患者[%s]的信息.", bean.getId()));
		return PatientDao.getPatientList(bean);
	}
	
	public void addPatient(PatientBean bean){
		PatientDao.addPatient(bean);
	}
	
	public void updatePatient(PatientBean bean){
		PatientDao.updatePatient(bean);
	}
	
	public void deletePatient(PatientBean bean){
		PatientDao.deletePatient(bean);
	}

}
